home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
Me-Mz
/
Mike's Externals.cpt
/
Mike's Externals
/
card_4791.txt
< prev
next >
Wrap
Text File
|
1990-02-22
|
872b
|
35 lines
-- card: 4791 from stack: in
-- bmap block id: 0
-- flags: 0000
-- background id: 2764
-- name:
-- part contents for background part 17
----- text -----
SubStr
-- part contents for background part 18
----- text -----
Jon Wind
-- part contents for background part 19
----- text -----
XFCN
-- part contents for background part 20
----- text -----
SubStr("string",startPosition,numberOfChars)
-- part contents for background part 21
----- text -----
Use this to get only a portion of a string at a time. Handy if you need to look at one character at a time within a string. This is eqivalent to Pascal's Copy function and BASIC's MID$.
-- part contents for background part 23
----- text -----
put substr("Mike Gleason",1,4) into firstname
repeat with x=1 to length of firstname
put substr(firstname,x,1) into char
if char="i" then play "Harpsichord"
end repeat